<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="jquery-1.11.1.min.js"></script>
    <script>
        $(function(){
            //设置属性，attr()
           //$("a").attr("title","这是百度");

            //设置多个属性
          $("a").attr({
              "name":"123123",
              "title":"报复122",
              "style":"color:red"
          })

            //获取属性
            var title = $("a").attr("title");
             console.log(title);

             //移除属性removeAttr
            $("a").removeAttr("name");
        })
    </script>
</head>
<body>
   <a href="http://www.baidu.com" name="abc">这是一个链接</a>
</body>
</html>